﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Order_SelectPromotion : System.Web.UI.Page
{
    private string ProductCode
    {
        get
        {
            return Request.QueryString["code"] != null ? Request.QueryString["code"].ToString() : "";
        }
    }



    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindDataListPromotion();             
        }
    }

    private void BindDataListPromotion()
    {
        dlistPromotion.DataSource = new BLL.CXFAD8MX1().GetPromotion(this.ProductCode);
        dlistPromotion.DataBind();
    }
    protected void dlistPromotion_ItemDataBound(object sender, DataListItemEventArgs e)
    {
        if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)
        {
            //HtmlInputHidden hidBYZD4 = (HtmlInputHidden)e.Item.FindControl("hidBYZD4");
            //Label lblPromotionName = (Label)e.Item.FindControl("lblPromotionName");
            //lblPromotionName.Text = BLL.Common.GetYHFSName(hidBYZD4.Value);
        }
    }
}
